/**
 * 用户的动态model类
 */
package com.hanhai.zrb.model.userDynamic;

import java.io.Serializable;
import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author leiruiqi@hanhai.com
 *
 */
public class UserDynamic implements Serializable{
	
	

	/**
	 * 
	 */
	private static final long serialVersionUID = -2342547293376040106L;
	

	private Long id;

	/**
	 * 用户id
	 */
	private Long userId;
	
	/**
	 * 创建时间
	 */
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	/**
	 * 事件类型
	 */
	private Integer type;
	
	/**
	 * 目标数据
	 */
	private String target;
	
	/**
	 * 展示标题
	 */
	private String title;
	
	/**
	 * 额外信息，json格式封装
	 */
	private String extra;
	
	/**
	 * 额外信息，extra的对象封装
	 */
	private ExtraInfo extraInfo;
	


	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public ExtraInfo getExtraInfo() {
		return extraInfo;
	}

	public void setExtraInfo(ExtraInfo extraInfo) {
		this.extraInfo = extraInfo;
	}

	
	
}
